 {
        
        var o = require("./UISoundManager.js"), i = require("./UIPopupBase.js");
        cc.Class({
            extends: i,
            properties: {
                labelList: {
                    default: [],
                    type: cc.Label
                },
                btnsPanel: cc.Node
            },
            onLoad: function () {
                this.roomIdString = "", this.bJoined = !1;
                for (var e = 0; e < this.btnsPanel.children.length; e++) {
                    var t = this.btnsPanel.children[e];
                    this.originColor || (this.originColor = t.children[0].color), t.on(cc.Node.EventType.TOUCH_START, this.onTouchStart.bind(this), this),
                        t.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd.bind(this), this), t.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel.bind(this), this);
                }
            },
            onTouchStart: function (e) {
                var t = e.target.children[0];
                t && (t.color = cc.Color.WHITE);
            },
            onTouchEnd: function (e) {
                var t = e.target.children[0];
                t && (t.color = this.originColor);
            },
            onTouchCancel: function (e) {
                this.onTouchEnd(e);
            },
            onButtonClick: function (e, t) {
                if (console.log("custom data = " + t), "onClose" === t) this.OnPanelClose(); else if ("clear" === t) o.playEffect("select"),
                    this.roomIdString = ""; else if ("back" === t) o.playEffect("select"), this.roomIdString = this.roomIdString.substring(0, this.roomIdString.length - 1); else {
                    if (this.bJoined) return;
                    o.playEffect("select");
                    var n = this.roomIdString;
                    n += t, console.log("str = " + n), n.length > 6 && (n = n.substring(0, n.length - 1)),
                        this.roomIdString = n, 6 === this.roomIdString.length && (console.log("加入房间的操作"),
                        Global.msgHandler.requestJoinRoom(this.roomIdString), this.roomIdString = "");
                }
            },
            update: function (e) {
                for (var t = this.labelList.length, n = 0; n < t; n++) this.labelList[n].string = "";
                t = this.roomIdString.length;
                for (var o = 0; o < t; o++) this.labelList[o].string = this.roomIdString[o];
            }
        })
    }